package com.demo.jenkins;

public class ThreadLocalUtil {

    public static final InheritableThreadLocal<String> threadLocal = new InheritableThreadLocal<>();


    //存value
    public static void set(String strValue) {
        threadLocal.set(strValue);
    }

    //取value
    public static String get() {
        return threadLocal.get();
    }

    //删除value
    public static void remove(){
        threadLocal.remove();
    }

}
